<?php
/**
 * Created by PhpStorm.
 * User: 12133
 * Date: 2025/7/28
 * Time: 11:40
 */

namespace app\controller\api;

use app\model\Info AS model;
use app\controller\Base;

class Info extends Base{
    public function list(){
        $post = input('post.');
        $where = [];
        !empty($post['nav_id']) && $where[] = ['nav_id','=',$post['nav_id']];
        $list = model::where($where)
            ->paginate(['pgae' => $this->page,'list_rows' => $this->size]);
        return $this->msg($list);
    }

    public function info($id){
        $find = model::find($id);
        return $this->msg($find);
    }
}